<template>
  <div class="mine-box order-box">
    <mu-card class="advert-box" v-if="advert!==''">
      <img :src="advert" alt />
    </mu-card>
    <mu-tabs>
      <mu-tab to="/inuseorder" replace>正在使用</mu-tab>
      <mu-tab to="/completedorder" replace>已完成</mu-tab>
    </mu-tabs>
    <div>
      <router-view />
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      advert: ""
    };
  },
  created() {
    //广告
    this.$api.showAdvert(1005).then(res => {
      this.advert = res.data.result.imageUrl;
    });
  }
};
</script>

<style>
</style>
